package com.ruoyi.business.service;

import com.ruoyi.business.domain.FileLoanApplication;
import com.ruoyi.business.domain.vo.FileLoanApplicationVo;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;

import java.util.List;

/**
 * 借阅申请Service接口
 *
 * @author sal
 * @date 2024-11-11
 */
public interface IFileLoanApplicationService {
    /**
     * 查询借阅申请
     *
     * @param id 借阅申请ID
     * @return 借阅申请
     */
    public FileLoanApplication selectFileLoanApplicationById(Long id);

    /**
     * 查询借阅申请列表
     *
     * @param fileLoanApplication 借阅申请
     * @return 借阅申请集合
     */
    public List<FileLoanApplication> selectFileLoanApplicationList(FileLoanApplication fileLoanApplication);

    TableDataInfo<FileLoanApplicationVo> selectPageFileLoanApplicationList(FileLoanApplicationVo fileLoanApplicationVo, PageQuery pageQuery);

    /**
     * 新增借阅申请
     *
     * @param fileLoanApplication 借阅申请
     * @return 结果
     */
    public FileLoanApplication insertFileLoanApplication(FileLoanApplication fileLoanApplication);

    /**
     * 修改借阅申请
     *
     * @param fileLoanApplication 借阅申请
     * @return 结果
     */
    public FileLoanApplication updateFileLoanApplication(FileLoanApplication fileLoanApplication);

    /**
     * 批量删除借阅申请
     *
     * @param ids 需要删除的借阅申请ID
     * @return 结果
     */
    public int deleteFileLoanApplicationByIds(List<Long> ids);

}
